% (my/p,lambda)-sigmaSA-ES with intermediate recombination Slide 97, 106
% Michael Sieber, Philipp Rusch

mu = 40
lambda = 3*mu
[y, sigma_dyn, fitness_dyn, generations, target_distance_dyn] = slash_comma_sa_es_intermediate(mu, mu, lambda, 30, 'RauschKugelmodell', 1, 10^-5);
disp("---------------------------------");


% print the result
%clf();
%hold on;
%semilogy(generations, target_distance_dyn);
%ylabel("Distance to optimum");
%xlabel("Generations");
%semilogy(generations, fitness_dyn);
%ylabel("Fitness");
%xlabel("Generations");
%hold off;
%axis([0, 200, 10^-14, 10]); %[xmin, xmax, ymin, ymax]